<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "home";
$route['^home$'] = 'home/index';
$route['404_override'] = '';
$route['^email$'] = 'email/index';
$route['^gioi-thieu.html$'] = 'introduce/index/gioi-thieu';
$route['^giup-do.html$'] = 'introduce/index/giup-do';
$route['^chinh-sach-giao-hang.html$'] = 'introduce/index/chinh-sach-giao-hang';
$route['^huong-dan-tra-hang.html$'] = 'introduce/index/huong-dan-tra-hang';
$route['^huong-dan-chon-size.html$'] = 'introduce/index/huong-dan-chon-size';
$route['^lien-ket-quang-cao.html$'] = 'introduce/index/lien-ket-quang-cao';
$route['^cau-hoi-thuong-gap.html$'] = 'introduce/index/cau-hoi-thuong-gap';
$route['^thuat-ngu-thoi-trang.html$'] = 'introduce/index/thuat-ngu-thoi-trang';
$route['^dieu-khoan-dieu-kien.html$'] = 'introduce/index/dieu-khoan-dieu-kien';
$route['^chinh-sach-bao-mat.html$'] = 'introduce/index/chinh-sach-bao-mat';
$route['^chuong-trinh-dai-su.html$'] = 'introduce/index/chuong-trinh-dai-su';
$route['^cham-soc-khach-hang.html$'] = 'introduce/index/cham-soc-khach-hang';
$route['^tong-quan.html$'] = 'introduce/index/tong-quan';
$route['^bao-chi-truyen-thong.html$'] = 'introduce/index/bao-chi-truyen-thong';
$route['^quy-dinh-va-hinh-thuc-thanh-toan.html$'] = 'introduce/index/quy-dinh-va-hinh-thuc-thanh-toan';
$route['^the-le-chuong-trinh-khuyen-mai-1d.html$'] = 'introduce/index/the-le-chuong-trinh-khuyen-mai-1d';
$route['^danh-sach-ua-thich.html$'] = 'favorites/index';
$route['^member/activeuser/(:num)/([a-z0-9/-]+)$'] = 'member/activeuser/$1/$2';
$route['^login$'] = 'login/index';
$route['^logout$'] = 'logout/index';
$route['^cart/add_cart/(:num)$'] = 'cart/add_cart/$1';
$route['^cart/update_cart$'] = 'cart/update_cart';
$route['^cart/delete_cart$'] = 'cart/delete_cart';
$route['^order/update$'] = 'order/update';
$route['^order$'] = 'order/index';
$route['^profile/get_state/(:num)'] = 'profile/get_state/$1';
$route['^profile/index/(:num)$'] = 'profile/index/$1';
$route['^profile/update$'] = 'profile/update';
$route['^order/finish/(.*)$'] = 'order/finish/$1';
$route['^order/update$'] = 'order/update';
$route['^dang-ky.html'] = 'login/index';
$route['^login/register$'] = 'login/register';
$route['^sitemap.html$'] = 'sitemap/index';
$route['^gio-hang.html$'] = 'cart/index';
$route['^quen-mat-khau.html$'] = 'lostpass/index';
$route['^gio-hang.html$'] = 'cart/index';
$route['^dat-hang.html$'] = 'order/index';
$route['^thiet-ke.html$'] = 'design/index';
$route['^thiet-ke/([a-z/-]+).html$'] = 'design/index/$1';
$route['^design/save'] = 'design/save';
$route['^thong-tin-lien-he.html$'] = 'contact/index';
$route['^tat-ca-san-pham.html$'] = 'product_category/products_all/';
$route['^top50-san-pham-moi-nhat.html$'] = 'product_category/products_top50/';
$route['^sitemap.html$'] = 'sitemap/index/';
$route['^san-pham-ban-chay.html$'] = 'product_category/products_buy/';
$route['^san-pham-khuyen-mai.html$'] = 'product_category/products_sale/';
$route['^tat-ca/(:num)$'] = 'product_category/products_all/$1';
$route['^san-pham-ban-chay/(:num)$'] = 'product_category/products_buy/$1';
$route['^san-pham-khuyen-mai/(:num)$'] = 'product_category/products_sale/$1';
$route['^san-pham-moi-nhat.html$'] = 'product_category/products_new';
$route['^san-pham-moi-nhat/(:num)$'] = 'product_category/products_new/$1';
$route['^thuong-hieu/([a-z0-9/-]+).html$'] = 'product_partner/index/$1';
$route['^products/quantity$'] = 'products/quantity';
$route['^capchaimage/securimage/([0-9]+)$'] = 'capchaimage/securimage/$1';
$route['^([a-z0-9/-]+)/item-([0-9]+).html$'] = 'products/index/$1/$2';
$route['^([a-z0-9/-]+).html$'] = 'product_category/index/$1';
$route['^([a-z0-9/-]+)$'] = 'product_category/index/$1';

/*End anywhere router*/

/* End of file routes.php */
/* Location: ./application/config/routes.php */